package com.zjj.learn.javaplus.pkg03.demo304;

public class TestDemo306_5 {

    public static void main(String[] args) {
        SportStudent sportStudent = new SportStudent("王中王", 21);
        SportTeacher sportTeacher = new SportTeacher("大姚", 35);
        sportStudent.playBasketBall();
        sportTeacher.playBasketBall();

        System.out.println("=====================");

        Student student = new Student("小王", 20);
        Teacher teacher = new Teacher("小李", 28);
        student.eat();
        teacher.eat();
    }
}
